﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace DataImportExport.Grando
{
    public class GrandoImport
    {
        public int UploadNewOrdersXml(string path)
        {
            var serializer = new XmlSerializer(typeof (Orders));
            var orders = (Orders) serializer.Deserialize(new FileStream(path, FileMode.Open, FileAccess.Read));

            

            return orders.Items.Count();
        }
    }
}
